package demo6;

public class TestStudent1 {
    public static void main(String[] args) {
        Student1 stu1 = new Student1();
        stu1.setName("李树强");
        stu1.setAge(22);
        System.out.println("姓名是："+ stu1.getName()+"    "+"年龄是："+ stu1.getAge());
        System.out.println("===============================");

        Student1 stu2 = new Student1("吴玉和",22);
        System.out.println("姓名是："+ stu2.getName()+"    "+"年龄是："+ stu2.getAge());
        stu2.setAge(23);
        System.out.println("姓名是："+ stu2.getName()+"    "+"年龄是："+ stu2.getAge());

    }
}
